package Factory;

import Factory.framework.Factory;
import Factory.framework.Product;
import Factory.idcard.IDCardFactory;

/**
 * <p>Title main</p>
 *
 * @author YiMing Liu
 * @date 2018/6/9 19:08
 * <p>Description:</p>
 */
public class main {
    public static void main(String[] args) {
        Factory factory = new IDCardFactory();
        Product product1 = factory.create("小1");
        Product product2 = factory.create("小2");
        Product product3 = factory.create("小3");
        Product product4 = factory.create("小4");
        product1.use();
        product2.use();
        product3.use();
        product4.use();
        System.out.println("共有"+factory.getTotal()+"个商品");
    }
}
